package com.information.manage.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("文件分析结果查询条件")
public class AnalysisFileQuery {

    @ApiModelProperty(value = "当前页", required = true)
    private Integer curPage;

    @ApiModelProperty(value = "每页条数", required = true)
    private Integer pageSize;

    @ApiModelProperty(value = "所属分类 Id", required = true)
    private Long classifyId;

    /**
     * @see com.information.manage.common.constants.ListenTypeEnum
     */
    @ApiModelProperty("文件处理类型 1咨询 2短讯 3短篇")
    private Integer listenFileTypeCode;

    @ApiModelProperty("标题模糊匹配")
    private String title;

    @ApiModelProperty("transTitle标题模糊匹配")
    private String transTitle;

    @ApiModelProperty("删除状态  0未删除  1已删除")
    private Integer deleteData;

    @ApiModelProperty("发布开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishStartTime;

    @ApiModelProperty("发布结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishEndTime;

}
